package com.headwind.logistics.common.controller;

import com.sun.org.apache.xpath.internal.operations.Mod;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author 小恶魔
 * @Date 2020-07-24 20:23
 * @Version 1.0
 * @DESCRIPTION 物流前台控制跳转器
 */
@Controller
public class LogisticsController {

    /**
     * 跳转至前台会员界面
     * @return
     */
    @GetMapping("/logistics/home")
    public String toHome(Model model){
        model.addAttribute("NAVIGATION","首页");
        return "logistics/home";
    }

    /**
     * 跳转至前台 我的订单页面
     * @return
     */
    @GetMapping("/logistics/myOrder")
    public String toOrder(Model model){

        model.addAttribute("NAVIGATION","我的订单");

        return "/logistics/myOrder";
    }

    /**
     * 跳转至我的工单页面
     * @return
     */
    @GetMapping("/logistics/workOrder")
    public String toWorkOrder(Model model){

        model.addAttribute("NAVIGATION","我的工单");

        return "/logistics/workOrder";
    }

    /**
     * 跳转至我的查单
     * @return
     */
    @GetMapping("/logistics/myCheckOrder")
    public String toCheckOrder(Model model){

        model.addAttribute("NAVIGATION","我的查单");

        return "/logistics/myCheckOrder";
    }

    /**
     * 跳转至我的财富信息
     * @return
     */
    @GetMapping("/logistics/myFortuneMess")
    public String toFortuneMess(Model model){
        model.addAttribute("NAVIGATION","我的财富信息");
        return "/logistics/FortuneMess";
    }

    /**
     * 跳转至积分商城
     * @return
     */
    @GetMapping("/logistics/integraMall")

    public String toIntegraMall(Model model){

        model.addAttribute("NAVIGATION","积分商城");
        return "/logistics/integraMall";
    }

    /**
     * 跳转至基本信息
     * @return
     */
    @GetMapping("/logistics/basicMess")
    public String toBasicMess(Model model){

        model.addAttribute("NAVIGATION","账户管理");
        return "/logistics/basicMess";
    }

    /**
     * 跳转至我的消息
     * @return
     */
    @GetMapping("/logistics/myMessages")
    public String toMyMessages(Model model){
        model.addAttribute("NAVIGATION","账户管理");
        return "/logistics/myMessages";
    }

    /**
     * 跳转至地址信息
     * @return
     */
    @GetMapping("/logistics/addressMessage")
    public String toAddressMessage(Model model){
        model.addAttribute("NAVIGATION","账户管理");
        return "/logistics/addressMessage";
    }

    /**
     * 跳转至修改密码
     * @return
     */
    @GetMapping("/logistics/modifyPassword")
    public String toModifyPassword(Model model){
        model.addAttribute("NAVIGATION","账户管理");
        return "/logistics/modifyPassword";
    }

}
